<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
					  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    xmlns:t="http://myfaces.apache.org/tomahawk">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>
<f:view>
	<a4j:form ajaxSubmit="true">
		<h:panelGrid id="pgListaCliente">
		
		<rich:dataTable
			value="#{clienteMB.listaCliente}"
			var="clienteVar" id="dtListCliente" rows="10"
			rowKeyVar="rowVar">
			<f:facet name="header">
				<h:outputText value="Lista de Clientes" />
			</f:facet>			
			<rich:column>
				<f:facet name="header">
					<h:outputText value="Nombre" />
				</f:facet>
				<h:outputText
					value="#{clienteVar.nombre}" />
			</rich:column>
			<rich:column>
				<f:facet name="header">
					<h:outputText value="Apellidos" />
				</f:facet>
				<h:outputText value="#{clienteVar.apellidos}" />
			</rich:column>
			<rich:column>
				<f:facet name="header">
					<h:outputText value="." />
				</f:facet>				
			</rich:column>
		</rich:dataTable>
		<rich:datascroller for="dtListCliente" maxPages="10" />
		
		<rich:fileUpload immediateUpload="true" fileUploadListener="#{uploadFileMB.fileUploadListener}" acceptedTypes="txt" /> 
		
		</h:panelGrid>
		
	</a4j:form>

</f:view>
</body>
</html>